import {BaseController} from 'egg-cool-controller';
import router from 'egg-cool-router';

/**
 * 商品-商品标签
 */
@router.prefix ('/admin/goods/tag' , ['add' , 'delete' , 'update' , 'list'])
export default class GoodsTagController extends BaseController {
    init () {
        this.setEntity (this.ctx.repo.goods.Tag);
        this.setService (this.service.goods.tag);
    }

    /**
     * 分类排序
     */
    @router.post ('/order')
    async order () {
        await this.OpService.order (this.getBody ());
        this.res ();
    }
}
